package com.neusoft.restaurant.mapper;


import com.neusoft.restaurant.entity.ResOrders;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单Mapper接口
 * 
 * @author zhongda
 * @date 2023-12-10
 */
@Mapper
public interface ResOrdersMapper 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public ResOrders selectResOrdersById(Long id);

    /**
     * 查询订单列表
     * 
     * @param resOrders 订单
     * @return 订单集合
     */
    public List<ResOrders> selectResOrdersList(ResOrders resOrders);

    /**
     * 新增订单
     * 
     * @param resOrders 订单
     * @return 结果
     */
    public int insertResOrders(ResOrders resOrders);

    /**
     * 修改订单
     * 
     * @param resOrders 订单
     * @return 结果
     */
    public int updateResOrders(ResOrders resOrders);

    /**
     * 删除订单
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteResOrdersById(Long id);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteResOrdersByIds(Long[] ids);
}
